/**
  ******************************************************************************
  * @author     Chris
  * @since      2024/6/28 15:35
  *
  * @file       pd_wdg.h
  * @brief      Header file of Xxx hardware driver.
  *
  * @note       This file contains the Xxx object declaration.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date          Author       Notes
  *   2024/6/28     Chris        the first version
  *
  ******************************************************************************
  */


#ifndef JLC_SKY_WDG_H
#define JLC_SKY_WDG_H

#include "stm32f407xx.h"
#include "drivers.h"

typedef struct WDGDef WDG;

struct WDGDef {
    void (*init)(WDG *this);

    void (*feedDogs)(WDG *this);

    uint32_t (*isReset)(WDG *this);

};

extern const struct WDGClass {
    WDG *(*build)();
} WDGBuilder;

#endif //JLC_SKY_WDG_H
